package com.example.demo.auth.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Entity
@Table(
        name = "V_ORG_UNIT_EXT"
)
public class UpUnitExt {
	
    private Long nid;
    private String id;
    private String aab301;
    private String aab302;

    @Id
    @Column(name = "nid")
    public Long getNid() {
        return nid;
    }

    public void setNid(Long nid) {
        this.nid = nid;
    }

    @Column(name="ID")
    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Column(name = "AAB301")
    public String getAab301() {
        return aab301;
    }

    public void setAab301(String aab301) {
        this.aab301 = aab301;
    }

    @Column(name = "AAB302")
    public String getAab302() {
        return aab302;
    }

    public void setAab302(String aab302) {
        this.aab302 = aab302;
    }

    @Transient
    public Long getEntityId() {
        return getNid();
    }
}
